<?php include (TEMPLATEPATH . '/wpress_defaults.php'); ?>
<?php if (get_option('disable_newsticker', 1) == '1') : ?>

<div class="menu_shadow_top"></div><!-- menu top shadow -->

<!-- begin newsticker here -->
<div id="news">
	<div class="news_left"></div><!-- menu left corner -->
	
	<div class="news_title">
		<strong><?php echo get_option("ticker_title", $wp_ticker_title); ?> :</strong>
	</div>

	<div class="news_content">
		<!-- including news -->
			<ul id="newsticker">
				
				 <?php
				 global $post;
				 $cat_id= get_option("ticker_category_id", 1);
				 $item_limit = get_option("ticker_limit", 10);
				 $myposts = get_posts('numberposts='.$item_limit.'&category='.$cat_id);
				 foreach($myposts as $post) :
				 setup_postdata($post);
				 ?>
					<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?> <img src="<?php bloginfo('template_url'); ?>/images/arrow.gif" alt="Arrow"/></a></li>
				 <?php endforeach; ?>
			</ul>
		<!-- end news -->
	</div>
	
	<div class="news_right"></div><!-- menu right corner -->
</div>
<!-- end newsticker here -->
<div class="menu_shadow"></div> <!-- menu bottom shadow -->

<?php endif; ?>